package com.silong.util;

/**
 * Created by zz on 2016/7/5.
 */
public class JsonMapperUtil extends org.codehaus.jackson.map.ObjectMapper {
    public JsonMapperUtil() {
        //this(Include.NON_EMPTY);
        // 空值处理为空串
/*
        this.getSerializerProvider().setNullValueSerializer(
            new JsonSerializer<Object>() {
            @Override
            public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) throws IOException,JsonProcessingException {
                //jgen.writeString("");
            }
        });
*/
    }
}
